<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<div class="table-responsive">
    <table class="table table-bordered">
        <thead>
            <tr>
                <th class="text-center"><div class="table-first-id">ID</div></th>
                <th class="text-center" width="15%">知识体系名称</th>
                <th class="text-center" width="35%">隶属专业/科目</th>
                <th class="text-center" width="10%">创建人</th>
                <th class="text-center" width="15%">创建时间</th>
                <th class="text-center" width="10%">状态</th>
                <th class="text-center" width="15%">操作</th>
            </tr>
        </thead>
    </table>
    <div class="J_V_tabContent table-xScrollWrap">
        <table class="table table-bordered table-hover table-xs-content">
            <tbody>
            <tr class="jqgfirstrow" role="row">
                <th class="text-center"><div class="table-first-id">&nbsp;</div></th>
                <th class="text-center" width="15%">&nbsp;</th>
                <th class="text-center" width="35%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="15%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="15%">&nbsp;</th>
            </tr>
            <tr th:if="${dataMap['list']==null or #lists.isEmpty(dataMap['list'])}">
                <td colspan="7" class="text-center">
                    <div class="noDataTipsBox">
                        <p><span class="c-4e fs16">亲，还没有知识体系数据~~~</span></p>
                    </div>
                </td>
            </tr>
            <tr th:if="${dataMap['list']!=null and #lists.size(dataMap['list']) > 0}" th:each="loreset : ${dataMap['list']}" th:id="'loreset-'+${loreset.id}">
                <td class="text-center">
                    <input type="checkbox" class="i-checks" name="loresetIds" th:value="${loreset.id}" />
                </td>
                <td class="text-center" th:id="'loreset-name-'+${loreset.id}" th:text="${loreset['loresetName']}"></td>
                <td class="text-center">
                    <th:block th:if="!${#lists.isEmpty(loreset['subjectList'])}">
                        <span class="pie" th:each="subject,subIndex : ${loreset['subjectList']}">
                            <th:block th:text="${subject['subjectName']}+'/'"></th:block>
                            <th:block th:if="!${#lists.isEmpty(subject['childSubjectList'])}" th:each="child,index : ${subject['childSubjectList']}">
                                <th:block th:if="${index.last} == false" th:text="${child['subjectName']}+'/'"></th:block>
                                <th:block th:if="${index.last} == true" th:text="${child['subjectName']}"></th:block>
                            </th:block>
                            <th:block th:if="${#lists.isEmpty(subject['childSubjectList'])}">全部科目</th:block>
                            <th:block th:if="${subIndex.last}==false" th:utext="'<br/>'"></th:block>
                        </span>
                    </th:block>
                    <th:block th:if="${#lists.isEmpty(loreset['subjectList'])}">
                        <span class="pie">—</span>
                    </th:block>
                </td>
                <td class="text-center" th:text="${loreset.sysUser}==null?'—' : ${loreset.sysUser.ralName}">
                </td>
                <td class="text-center" th:text="${#strings.substring(loreset['createTime'],0,16)}">
                </td>
                <td class="text-center" th:id="'lore-status-'+${loreset.id}">
                    <span class="label label-info" th:if="${loreset.status}==1">正常</span>
                    <span class="label label-danger" th:if="${loreset.status}==2">冻结</span>
                </td>
                <td class="text-center">
                    <a href="javascript:void(0);" class="c-master fs14" th:attr="data-id=${loreset.id}" data-toggle="tooltip" data-placement="bottom" data-original-title="查看">
                        <i class="fa fa-eye"></i>
                    </a>
                    <a th:href="@{/admin/manage/loreset/initUpdate?id={id}(id=${loreset.id})}" class="c-master fs14 ml5" data-toggle="tooltip" data-placement="bottom" data-original-title="修改">
                        <i class="fa fa-edit"></i>
                    </a>
                    <a th:if="${loreset.status}==1" href="javascript:void(0);" class="c-master fs14 ml5" th:id="'lore-action-status-'+${loreset.id}" th:attr="data-id=${loreset.id}" data-toggle="tooltip" data-placement="bottom" data-original-title="冻结">
                        <i class="fa fa-unlock-alt"></i>
                    </a>
                    <a th:if="${loreset.status}==2" href="javascript:void(0);" class="c-master fs14 ml5" th:id="'lore-action-status-'+${loreset.id}" th:attr="data-id=${loreset.id}" data-toggle="tooltip" data-placement="bottom" data-original-title="恢复">
                        <i class="fa fa-history"></i>
                    </a>
                    <a href="javascript:void(0);" class="c-master fs14 ml5" th:attr="data-id=${loreset.id}" data-toggle="tooltip" data-placement="bottom" data-original-title="删除">
                        <i class="fa fa-trash-o"></i>
                    </a>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <!-- 分页，开始 -->
    <div data-th-replace="layout/adminPage"></div>
    <!-- 分页，结束 -->
</div>
</html>